From cc25cf050bb001c62d58850f43e5c2b966d49dc6 Mon Sep 17 00:00:00 2001 From: robertlipe Date: Fri, 16 Dec 2011 01:58:51 +0000 Subject: [PATCH] Skytraq: treat READ_END as an array, not a string. --- gpsbabel/skytraq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpsbabel/skytraq.c b/gpsbabel/skytraq.c index c1ad49234..91ee48b60 100644 --- a/gpsbabel/skytraq.c +++ b/gpsbabel/skytraq.c @@ -244,7 +244,7 @@ wr_buf(const unsigned char *str, int len) gbuint8 NL[2] = { 0x0D, 0x0A }; gbuint8 MSG_START[2] = { 0xA0, 0xA1 }; -gbuint8 SECTOR_READ_END[13] = "END\0CHECKSUM="; +gbuint8 SECTOR_READ_END[13] = { 'E','N','D', 0, 'C','H','E','C','K','S','U','M','=' }; static int skytraq_calc_checksum(const unsigned char *buf, int len) @@ -1306,7 +1306,7 @@ arglist_t miniHomer_args[] = { /* * Names of the POIs on miniHomer */ -static char *poinames[] = { +static const char *poinames[] = { "Home", "Car", "Boat", "Heart", "Bar" }; #define NUMPOI (sizeof poinames/sizeof poinames[0]) -- 2.30.2